import java.util.Scanner;

public class LQB_06 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int p = input.nextInt(); // p元每盒  一盒12支
        int t = input.nextInt(); // 至少买t支
        if(t%12 == 0){
            System.out.println(t/12 * p);
        }else {
            System.out.println((t/12 + 1) *p);
        }
    }
}
